aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/qr/[text]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-07 21:16:25 -0800
committerAdam Soltys <[email protected]>2024-11-08 09:27:40 -0800
commit32fcc461cd43c8907df5e306d520bb671307eab1 (patch)
tree0253780c569998b6c1a5f43026586e94916c3fee /src/routes/(app)/qr/[text]
parentbe5aa52cea1d57c875cfb22d25c6a866b8de2239 (diff)
downloadcoinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.tar.gz
coinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.zip
svelte 5
Diffstat (limited to 'src/routes/(app)/qr/[text]')
-rw-r--r--src/routes/(app)/qr/[text]/+page.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/qr/[text]/+page.svelte b/src/routes/(app)/qr/[text]/+page.svelte
index e1aae854..02a5b718 100644
--- a/src/routes/(app)/qr/[text]/+page.svelte
+++ b/src/routes/(app)/qr/[text]/+page.svelte
@@ -2,7 +2,7 @@
import Icon from "$comp/Icon.svelte";
import Qr from "$comp/Qr.svelte";
import { back, copy } from "$lib/utils";
- export let data;
+ let { data } = $props();
let { src, text } = data;
</script>
@@ -12,9 +12,9 @@
<button
type="button"
class="btn break-all !h-auto flex-nowrap p-4 font-normal leading-normal"
- on:click={() => copy(text)}
+ onclick={() => copy(text)}
>
- <iconify-icon icon="ph:copy-bold" width="32" />
+ <iconify-icon icon="ph:copy-bold" width="32"></iconify-icon>
<div class="my-auto">{text}</div>
</button>
</div>